import request from '@/utils/request'

export default {
    //1.获取全部标签
    getAllTag(){
        return request({
            url:'/api/admin/tags/tags', 
            method:'get'
        })
       
        
    },
    //2.删除标签
    delTag(id){
        return request({
            url:`/api/admin/tags/tag/${id}`,
            method:'delete'
        })
    },
    //3.添加标签
    addTag(params){
        return request({
            url:`/api/admin/tags/tag`,
            method:'post',
            data:params
        })

    }
}